package com.gxa.hualian.service;

import com.gxa.hualian.entity.Coupon;
import com.gxa.hualian.entity.Manager;
import com.gxa.hualian.entity.User;

import java.util.List;

public interface ManagerService {
    /**
     * 注册方法
     * @param manager
     * @return
     * @throws Exception
     */
    Manager register(Manager manager) throws Exception;

    /**
     * 登录方法
     * @param manager
     * @return
     * @throws Exception
     */
    boolean login(Manager manager) throws Exception ;

    /**
     * 通过手机号查询
     * @param phone
     * @return
     * @throws Exception
     */
    Manager selectByPhone(String phone) throws Exception;

    /**
     * 分页查询
     * @param page
     * @return
     * @throws Exception
     */
    List<Manager> selectByPage(Integer page) throws Exception;

    /**
     * 全查询
     * @return
     * @throws Exception
     */
    List<Manager> sellectAll() throws Exception;

    /**
     * 根据手机号删除
     * @param phone
     * @return
     * @throws Exception
     */
    Boolean deleteByPhone(String phone) throws Exception;

    /**
     * 根据手机号修改
     * @param manager
     * @return
     * @throws Exception
     */
    boolean updateByPhone(Manager manager) throws Exception;

    /**
     * 插入操作
     * @param manager
     * @return
     * @throws Exception
     */
    Integer insert(Manager manager) throws Exception;

    /**
     * 模糊查询
     * @param value
     * @return
     * @throws Exception
     */
    List<Manager> selectLikeName(Object value) throws Exception;
}
